
import {Map} from 'immutable'

const defaultSate = Map({
    key:null
})

const reducer=(state=defaultSate,action)=>{
    // console.log(action.keywords)
    if(action.type === 'CHANGE_KEYWORD'){
        return state.setIn(['key'],action.keywords)
    }
    return state
}
export default reducer